package com.lframework.xingyun.basedata.vo.unit;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import com.lframework.starter.web.core.vo.BaseVo;
import javax.validation.constraints.NotNull;
import com.lframework.starter.web.core.components.validation.TypeMismatch;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;

@Data
public class UpdateUnitVo implements BaseVo, Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID", required = true)
    @NotBlank(message = "id不能为空！")
    private String id;

    /**
     * 单位类型
     */
    @ApiModelProperty(value = "单位类型", required = true)
    @NotNull(message = "请选择单位类型！")
    private Integer unitType;

    /**
     * 单位名称
     */
    @ApiModelProperty(value = "单位名称", required = true)
    @NotBlank(message = "请输入单位名称！")
    @Length(message = "单位名称最多允许20个字符！")
    private String unitName;

    /**
     * 显示排序
     */
    @ApiModelProperty(value = "显示排序", required = true)
    @TypeMismatch(message = "显示排序格式有误！")
    @NotNull(message = "请输入显示排序！")
    private Integer displayNum;

}

